local thbattle__xiaosan_yukuai = fk.CreateSkill {

  name = "thbattle__xiaosan_yukuai",

  tags = { Skill.Compulsory, },

}



thbattle__xiaosan_yukuai:addEffect(fk.EventPhaseEnd, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__xiaosan_yukuai.name) and player.phase == Player.Draw
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local targe_player = room:askForChoosePlayers(player, table.map(room.alive_players, Util.IdMapper), 1, 1,
      "#thbattle__xiaosan_yukuai", thbattle__xiaosan_yukuai.name, false)
    room:getPlayerById(targe_player[1]):drawCards(1, thbattle__xiaosan_yukuai.name)
  end
})

return thbattle__xiaosan_yukuai